﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using VisualWip.Core.Interfaces;

namespace VisualWip.Core
{
    public class WorkItem
    {
        public WorkItem()
        {
            Fields = new Dictionary<string, object>();
            Children = new Collection<WorkItem>();
            Behaviors = new Collection<IWorkItemBehavior>();
        }

        public virtual string TypeName { get; set; }
        public virtual string Id { get; set; }
        public virtual string Title { get; set; }
        public virtual string State { get; set; }
        public virtual Dictionary<string, object> Fields { get; private set; }
        public virtual Collection<WorkItem> Children { get; private set; }
        public virtual Collection<IWorkItemBehavior> Behaviors { get; private set; }
    }
}